<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>常用的注解</title>
</head>
<body>
    <h2>常用的注解</h2>
    <h5>RequestParam注解 <a href="anno/testRequestParam?name=哈哈">RequestParam</a></h5>

    <h5>RequestBody注解</h5>
    <form action="anno/testRequestBody" method="post">
        用户姓名：<input type="text" name="username" /><br/>
        用户年龄：<input type="text" name="age" /><br/>
        <input type="submit" value="提交" />
    </form>

    <h5>PathVariable注解 <a href="anno/testPathVariable/10">testPathVariable</a></h5>

    <h5>RequestHeader注解 <a href="anno/testRequestHeader">RequestHeader</a></h5>

    <h5>CookieValue注解 <a href="anno/testCookieValue">CookieValue</a></h5>

    <h5>ModelAttribute注解</h5>
    <form action="anno/testModelAttribute" method="post">
        用户姓名：<input type="text" name="uname" /><br/>
        用户年龄：<input type="text" name="age" /><br/>
        <input type="submit" value="提交" />
    </form>

    <h5>SessionAttributes注解
        <a href="anno/testSessionAttributes">testSessionAttributes</a>&nbsp;&nbsp;
        <a href="anno/getSessionAttributes">getSessionAttributes</a>&nbsp;&nbsp;
        <a href="anno/delSessionAttributes">delSessionAttributes</a>
    </h5>
</body>
</html>
